package com.bupt.kgplatform.controller.jinrui;

import com.bupt.kgplatform.entity.pojo.Result;
import com.bupt.kgplatform.entity.pojo.SearchInfo;
import com.bupt.kgplatform.service.DCollectionService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * ClassName:DCollectionController
 * Package:com.example.blackjavaweb.controller
 * Description:展示信息的的获取(mqsql)
 *
 * @Author QIQI_1999
 * @Creat 2023/9/10 16:19
 * @Version 1.0
 */
@Slf4j
@RestController
@RequestMapping("/Ctbto")
public class DCollectionController {

    @Autowired
    private DCollectionService dCollectionService;

    @PostMapping("/markinfo")
    public Result getMarkInfo(@RequestBody SearchInfo searchInfo){
        log.info("查询meeting某类别下的会议与文档信息，查询条件为{}",searchInfo);

        Object object = dCollectionService.getMarkInfo(searchInfo);
        return Result.success(object);
    }
}
